//
//  BMKLocationModel.h
//  BaZhou
//
//  Created by JL on 15/10/7.
//  Copyright (c) 2015年 ZJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AMapSearchKit/AMapSearchKit.h>
#import <MAMapKit/MAMapKit.h>

typedef void(^LocationFinish)(CLLocationCoordinate2D coor2D,NSString *cityName);
typedef void(^GeoCodeAddressFinish)(CLLocationCoordinate2D coor2D,AMapReGeocodeSearchResponse *addResult);//反地理编码成功
typedef void(^LocationField)(void);
typedef void(^PoiSearchResult)(NSArray *poiInfoArray);

@interface AMKLocationModel : NSObject<AMapSearchDelegate,AMapLocationManagerDelegate>
@property (nonatomic,strong)AMapLocationManager * locService;
//@property (nonatomic,strong)BMKGeoCodeSearch *geoCodeSearch;//逆地理编码
//@property (nonatomic,strong)BMKPoiSearch *search;
@property (nonatomic,assign)BOOL canGeoCode;

@property (nonatomic,copy)NSString *locationCity;

+ (instancetype)sharedBMKLocationModel;
- (void)stopLocation;
- (void)startLocation;
- (void)loctionCanGeoCode:(BOOL)canGeoCode Finish:(LocationFinish)locationFinish locationField:(LocationField)locationField;

+ (instancetype)BMKLocationModelLoctionCanGeoCode:(BOOL)canGeoCode Finish:(LocationFinish)locationFinish locationField:(LocationField)locationField;
//
//- (void)loctionAddResult:(BOOL)canGeoCode Finish:(GeoCodeAddressFinish)locationFinish locationField:(LocationField)locationField;
//
//+ (instancetype)BMKLocationModelLoctionAddResult:(BOOL)canGeoCode Finish:(GeoCodeAddressFinish)locationFinish locationField:(LocationField)locationField;
//
//- (void)poiSearchKeyWord:(NSString *)keyWord finish:(PoiSearchResult)poiSearch;
//
//+ (instancetype)BMKLocationModelpoiSearchKeyWord:(NSString *)keyWord finish:(PoiSearchResult)poiSearch;
//
//- (void)poiSearchKeyWord:(NSString *)keyWord city:(NSString *)cityName finish:(PoiSearchResult)poiSearch;
//+ (instancetype)BMKLocationModelpoiSearchKeyWord:(NSString *)keyWord city:(NSString *)city finish:(PoiSearchResult)poiSearch;
//- (void)poiNearbySearchKeyWord:(NSString *)keyWord finish:(PoiSearchResult)poiSearch;
//+ (instancetype)BMKNearbyLocationModelpoiSearchKeyWord:(NSString *)keyWord finish:(PoiSearchResult)poiSearch;
//+ (BOOL)isOpenLocation;
@end
